package com.sx.art2.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sx.art2.beans.Art;
import com.sx.art2.beans.AuctionInfo;
import com.sx.art2.tools.Page;

public interface AuctionInfoService {
	
	public List<AuctionInfo> list(int state);
	public List<AuctionInfo> list(Page page,int state);
	public AuctionInfo lookArt(int auctionInfoId);
	public AuctionInfo getArt(int auctionInfoId);
	public AuctionInfo selectAuctionInfoById(int auctionInfoId);
	public void update(AuctionInfo auctionInfo);
	public int getTotalCount();
	List<AuctionInfo> selectAll(Art art);
	List<AuctionInfo> selectLikeAuction(Integer categoryId,String artSize, String auctionNowPrice);
	List<AuctionInfo> selectLikePreviewAuction(@Param("categoryId") Integer categoryId,@Param("artSize") String artSize,@Param("auctionNowPrice") String auctionNowPrice);
	public void updateState(int auctionInfoId,int auctionState);
	public void auctionComfirm(int auctionInfoId,int auctionState);
	public List<AuctionInfo> success(@Param("page") Page page);
}
